package com.the8thfold.anton.users

import org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser
import org.springframework.security.core.GrantedAuthority

class AntonUserDetails extends GrailsUser {

    final Integer userTenantId
    final String userId
    final String fullName

    AntonUserDetails (String username, String password, boolean enabled,
                      boolean accountNonExpired, boolean credentialsNonExpired,
                      boolean accountNonLocked,
                      Collection<GrantedAuthority> authorities,
                      long id, String fullName, Integer userTenantId, String userId) {
        super(username, password, enabled, accountNonExpired,
                credentialsNonExpired, accountNonLocked, authorities, id)

        this.fullName = fullName
        this.userTenantId = userTenantId
        this.userId = userId
    }
}
